package 引用类型编程题2;

public class Test {
    public static void printPhone(Phone phone){
        System.out.println("Brand: "+phone.getBrand()+"\nColor: "+phone.getColor()+"\nPrice: "+phone.getPrice()+
                "\nThere is a "+phone.getBrand()+" phone calling in!");
    }
    public static void main(String[] args) {
        printPhone(new Phone("Huawei","black",5999));
    }
}
